$(function(){
	$.ajax({
		type:"get",
		url:"data.json",
		data:{},
		dataType:"json",
		success:function(data){
			console.log(data.banner);
			var ff = $(".swiper-wrapper");
			ff.empty();
			$.each(data.banner,function(i,v){
				var dd = "<div class='swiper-slide'><a href='"+v.url+"'><img src='"+v.src+"'/></a></div>"
				console.log(dd);
				ff.append(dd);
			});
			
	}		
	})
});
